package com.dayuanit.dy15.lesson23.demo2;

/**
 * 节点对象
 */
public class Node {
    //下一个节点对象
    public Node next;

    //上一个节点对象
    public Node pre;

    //当前节点对象保存的元素
    public Object item;

    public Node(Node pre, Object item, Node next) {
        this.pre = pre;
        this.item = item;
        this.next = next;
    }
}
